home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_05
/
allison
/
person.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-12
|
534b
|
24 lines
LISTING 16 - Defines a Person data type
// person.h
#include <cstring.h>
#include "date5.h"
#include "bool.h"
class ostream;
class Person
{
friend ostream & operator<<(ostream &, const Person &);
public:
Person(const string& = "", const string& = "",
const Date& = Date(0,0,0), const string& = "");
bool operator==(const Person &) const;
private:
string last; // 3 string subobjects
string first;
Date birth; // Date subobject
string ssn;
};